const Layout = () => import("@/layout/index.vue");

const routes = [
    {
        path: "/supplier",
        name: "Supplier",
        component: Layout,
        meta: {
            title: "供应商管理",
            icon: "goods",
            affix: true,
            keepAlive: true,
            alwaysShow: true,
        },
        children: [
            {
                path: "/supplier/index",
                name: "SupplierIndex",
                component: () => import("@/components/common-list.vue"),
                meta: {
                    title: "供应商管理",
                    icon: "goods",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                    table: 'tk_supplier',
                },
            },
            {
                path: "/supplier/category",
                name: "SupplierCategory",
                component: () => import("@/components/common-list.vue"),
                meta: {
                    title: "供应商分类",
                    icon: "category",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                    table: 'tk_supplier_category',
                },
            },
            // 供应商产品
            {
                path: "/supplier/product",
                name: "SupplierProduct",
                component: () => import("@/components/common-list.vue"),
                meta: {
                    title: "供应商产品",
                    icon: "menu",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                    table: 'tk_supplier_product',
                },
            },
        ],
    }
];

export default routes;
